'use strict';
app.service('navTreeService',['$q','utilService',function($q,utilService){
    var _this_=this;

    //获取用户菜单栏
    _this_.getSystemUserFunctions= function ($scope) {
        var deferred = $q.defer();
        utilService.get({
            url:$scope.app.domain + '/system/user/functions'
        }).then(function(response){
            deferred.resolve(response.data);
        },function(e){
            console.error(e);
            deferred.reject("连接服务器出错！");
        })
        return deferred.promise;
    }

}])